﻿namespace MinimalAPI.Sample.Endpoints.StringList.v2;

internal sealed class Get : IEndpoint
{
    public void MapEndpoint(IEndpointRouteBuilder app)
    {
        app.MapGet("StringList/Get", () => Data.Summaries.Where(x => x.StartsWith("S")))
	        .WithTags(Tags.DefaultTag)
            .HasApiVersion(new Asp.Versioning.ApiVersion(2, 0));

    }
}
